package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import com.laowang.framework.web.domain.PageObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * banner对象 my_banner
 *
 * @author laowang
 * @date 2023-04-19
 */
@NoArgsConstructor
@Data
public class MyBanner extends PageObject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称", required = false)
    private String title;

    /**
     * 描述
     */
    @Excel(name = "描述")
    @ApiModelProperty(value = "描述", required = false)
    private String desc;

    /**
     * 图片
     */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片", required = false)
    private String img;

    /**
     * 标记
     */
    @Excel(name = "标记")
    @ApiModelProperty(value = "标记", required = false)
    private Long flag;

    /**
     * url
     */
    @Excel(name = "url")
    @ApiModelProperty(value = "url", required = false)
    private String url;

    /**
     * 类型
     */
    @Excel(name = "类型")
    @ApiModelProperty(value = "类型", required = false)
    private String type;

    /**
     * 权重
     */
    @Excel(name = "权重")
    @ApiModelProperty(value = "权重", required = false)
    private Integer weight;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @ApiModelProperty(value = "状态", required = false)
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updateTime;

}
